import java.io.*;
import java.util.Stack;
import java.util.Vector;

public class Cls_13 extends Cls_15
{

    public int fld_85;

    public final void mth_88(DataInputStream datainputstream)
    {
        Cls_13 cls_13_1;
        Stack stack;
        if(fld_85 != -1)
        {
            Cls_13 cls_13 = this;
            if(datainputstream.readByte() != 1)
            {
                cls_13.mth_78(0, "Unsupported encoding");
                return;
            }
            cls_13.mth_98(datainputstream);
            if(((Cls_15) (cls_13)).fld_89)
            {
                return;
            } else
            {
                datainputstream.read();
                cls_13.mth_77(datainputstream);
                return;
            }
        }
        cls_13_1 = this;
        stack = new Stack();
        if(datainputstream.readByte() != 1)
        {
            cls_13_1.mth_78(0, "Unsupported encoding");
            return;
        }
        cls_13_1.mth_98(datainputstream);
        if(((Cls_15) (cls_13_1)).fld_89)
            return;
_L12:
        String s;
        String as[];
        byte byte0;
        s = null;
        as = null;
        switch(byte0 = datainputstream.readByte())
        {
        case 2: // '\002'
            s = datainputstream.readUTF();
            int i;
            if((i = datainputstream.readShort() << 1) > 0)
            {
                as = new String[i];
                for(int j = 0; j < i; j++)
                    as[j] = datainputstream.readUTF();

            }
            break;

        case 3: // '\003'
        case 6: // '\006'
            s = datainputstream.readUTF();
            break;
        }
        Cls_16.fld_301.mth_473();
        if(((Cls_15) (cls_13_1)).fld_89)
        {
            Cls_16.fld_301.mth_474();
            return;
        }
        byte0;
        JVM INSTR tableswitch 1 6: default 439
    //                   1 252
    //                   2 261
    //                   3 349
    //                   4 372
    //                   5 400
    //                   6 409;
           goto _L1 _L2 _L3 _L4 _L5 _L6 _L7
_L2:
        cls_13_1.mth_97(22);
        continue; /* Loop/switch isn't completed */
_L3:
        stack.push(s);
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140(s));
        if(as == null) goto _L9; else goto _L8
_L8:
        Cls_16.fld_279.mth_175(as.length);
        for(s = 0; s < as.length; s++)
            Cls_16.fld_279.mth_192(as[s]);

        Cls_16.fld_279;
        Cls_16.mth_747();
          goto _L10
_L9:
        Cls_16.fld_279;
        false;
_L10:
        mth_745();
        cls_13_1.mth_97(23);
        continue; /* Loop/switch isn't completed */
_L4:
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140(s));
        cls_13_1.mth_97(24);
        continue; /* Loop/switch isn't completed */
_L5:
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140((String)stack.pop()));
        cls_13_1.mth_97(25);
        continue; /* Loop/switch isn't completed */
_L6:
        cls_13_1.mth_97(26);
        continue; /* Loop/switch isn't completed */
_L7:
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140(s));
        Cls_16.fld_279.mth_758(0);
        cls_13_1.mth_97(27);
        continue; /* Loop/switch isn't completed */
_L1:
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140("Protocol error (" + byte0 + ")"));
        Cls_16.fld_279.mth_758(0);
        cls_13_1.mth_97(27);
        byte0 = 6;
        if(!((Cls_15) (cls_13_1)).fld_89 && byte0 != 5 && byte0 != 6) goto _L12; else goto _L11
_L11:
    }

    public void mth_78(int i, String s)
    {
        if(fld_85 != -1)
        {
            i = s;
            s = this;
            Cls_16.fld_301.mth_473();
            if(((Cls_15) (s)).fld_89)
            {
                Cls_16.fld_301.mth_474();
                return;
            } else
            {
                Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140(((String) (i == null ? "Unspecified error" : ((String) (i))))));
                Cls_16.fld_279.mth_758(0);
                s.mth_97(7);
                return;
            }
        }
        i = s;
        s = this;
        Cls_16.fld_301.mth_473();
        if(((Cls_15) (s)).fld_89)
        {
            Cls_16.fld_301.mth_474();
            return;
        } else
        {
            Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_140(((String) (i == null ? "Unspecified error" : ((String) (i))))));
            Cls_16.fld_279.mth_758(0);
            s.mth_97(27);
            return;
        }
    }

    public Cls_13(String s, int i, int j, String s1, boolean flag)
    {
        super(s, i, j, s1, flag, 0);
    }

    public Cls_13(String s, int i, int j, String s1, boolean flag, String s2)
    {
        super(s, i, j, s1, flag, 1);
        fld_85 = -1;
    }

    public Cls_13(String s, int i, String s1)
    {
        super(s, i, s1, null, true, 0);
    }

    public Cls_13(String s)
    {
        super(s, 0, 1);
    }

    public void mth_77(DataInputStream datainputstream)
    {
        byte abyte0[] = new byte[10240];
_L3:
        if(super.fld_89) goto _L2; else goto _L1
_L1:
        datainputstream;
        abyte0;
        read();
        int i;
        i;
        break MISSING_BLOCK_LABEL_25;
        JVM INSTR pop ;
        i = -1;
        Cls_16.fld_301.mth_473();
        if(super.fld_89)
        {
            Cls_16.fld_301.mth_474();
            return;
        }
        if(i <= 0)
        {
            mth_97(6);
            return;
        }
        Cls_16.fld_279.mth_745(Cls_16.fld_279.mth_791(abyte0, 0, i));
        mth_97(5);
          goto _L3
_L2:
    }

    public final InputStream mth_91(InputStream inputstream)
    {
        if(fld_85 != -1)
            return super.mth_91(inputstream);
        else
            return new Cls_3(inputstream);
    }

    public void mth_79(int i, String s, Vector vector)
    {
        if(fld_85 != -1)
        {
            i = vector;
            s = s;
            vector = i;
            Cls_13 cls_13 = this;
            super.mth_79(vector, s, i);
            if(!((Cls_15) (cls_13)).fld_89)
                cls_13.mth_97(4);
            return;
        }
        i = vector;
        s = s;
        vector = i;
        Cls_13 cls_13_1 = this;
        super.mth_79(vector, s, i);
        if(!((Cls_15) (cls_13_1)).fld_89)
            cls_13_1.mth_97(21);
    }
}